package com.blx.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;

import org.springframework.context.ApplicationContext;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.support.WebApplicationContextUtils;


public class ContextStartupListener extends ContextLoaderListener {
	@Override
	public void contextInitialized(ServletContextEvent event) {
		super.contextInitialized(event);
		try {
			ServletContext context = event.getServletContext();
			ApplicationContext ctx1 = WebApplicationContextUtils.getRequiredWebApplicationContext(context);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
